﻿<%@ Language="C#" Inherits="System.Web.Mvc.ViewPage<DNBProject.Model.PopupPartial.TablePopupModel>" %>
<style type="text/css">
    input {
        width: 80px;
        height: 10px
    }
    label {
        margin-top: 10px;
        margin-bottom: 10px
    }
    
    .popupTableCell {
        border-right: 1px solid black;
        border-bottom: 1px solid black;
    }
    
    .popupTableHeader {
        border-right: 1px solid black;
        border-bottom: 1px solid black;
    }
    
    .popupTable {
        border-top: 1px solid black;
        border-left: 1px solid black;
    }
    
    #datatable {
        margin: 0px;
    }
</style>
<div align="center">
    KẾT QUẢ QUAN TRẮC <%:Model.Title%> 
</div>
<div style="width: 450px">
    <table id="datatable" class="display popupTable" style="width: 100%">
        <thead>
            <tr>
			    <th class="popupTableHeader">Chỉ tiêu</th>
			    <th class="popupTableHeader">Giá trị đo</th>
			    <th class="popupTableHeader">QCVN</th>
		    </tr>
        </thead>

        <tbody>
            <% 
                foreach (var row in Model.Rows)
               {%>
                    <tr>
                        <td class="popupTableCell"><%:string.Format("{0}({1})", row.TenChat,row.DonVi) %></td>
                        <td class="popupTableCell"><%:row.GiaTriDo%></td>
                        <td class="popupTableCell"><%:row.Qcvn%></td>
                    </tr>
               <%} %>
        </tbody>
    </table>
</div>